// app.ts
namespace Global {
    export const url: string = "Hello, global!";
  }
  App<IAppOption>({
    globalData: {
      url: "127.0.0.1",
      bb: 101
    },
    onLaunch() {
      console.log(this.globalData.url);
      console.log(this.globalData.bb);
      this.login();
    },
    //登录获取code 
    login: function () {
      wx.login({
        success: function (res) {
          console.log(res.code);
        }
      })
    },
  })

